package com.wanho.java158.impl;

import com.github.pagehelper.PageInfo;
import com.wanho.java157.CustomerDetail;
import com.wanho.java157.CustomerDetailMapper;
import com.wanho.java157.CustomerLogin;
import com.wanho.java157.CustomerLoginMapper;
import com.wanho.java157.po.BaseEntity;
import com.wanho.java158.CustomerDetailService;
import com.wanho.java158.CustomerLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
public class CustomerLoginServiceImpl implements CustomerLoginService {
    @Autowired
    private CustomerLoginMapper customerLoginMapper;
    @Override
    public PageInfo selectPage(int pageNo, int pageSize, Object userExample) {
        return null;
    }

    @Override
    public int deleteByPrimaryKey(Serializable serializable) {
        return 0;
    }

    @Override
    public int insert(BaseEntity record) {
        return 0;
    }

    @Override
    public int insertSelective(BaseEntity record) {
        return 0;
    }

    @Override
    public List selectByExample(Object example) {
        return null;
    }

    @Override
    public BaseEntity selectByPrimaryKey(Serializable serializable) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(BaseEntity record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(BaseEntity record) {
        return 0;
    }

    @Override
    public boolean deleteByCustomerId(Integer id) {
        return customerLoginMapper.deleteByCustomerId(id);
    }

    @Override
    public CustomerLogin selectByCustomerId(Integer id) {
        return customerLoginMapper.selectByCustomerId(id);
    }
}
